package com.koala.swb.sshTunel;

import com.jcraft.jsch.UserInfo;

/**
 * 
 * @author cerokool32
 * @category Comunicación
 */
public class SUserInfo implements UserInfo {
 
    private String password;
    private String passPhrase;
 
    /**
     * Constructor de la clase que establece la informacion de usuario de un host remoto
     * @param password Pass del usuario remoto
     * @param passPhrase PassPhrase del usuario remoto (por defecto nulo)
     */
    public SUserInfo (String password, String passPhrase) {
        this.password = password;
        this.passPhrase = passPhrase;
    }
 
    public String getPassphrase() {
        return passPhrase;
    }
 
    public String getPassword() {
        return password;
    }
 
    public boolean promptPassphrase(String arg0) {
        return true;
    }
 
    public boolean promptPassword(String arg0) {
        return false;
    }
 
    public boolean promptYesNo(String arg0) {
        return true;
    }
 
    public void showMessage(String arg0) {
        System.out.println("SUserInfo.showMessage()");
    }
}